const zh = {
  anlin: {
    avatar: 'https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png'
  },
  navs: {
    list1: '用户中心',
    list2: '控制台',
    list3: '登录',
    list4: '注册'
  },
  meta: {
    user: {
      title: '用户中心',
      sid: 2
    },
    login: {
      title: '登录',
      sid: 2
    },
    register: {
      title: '注册',
      sid: 2
    },
    note: {
      title: '笔记',
      sid: 1
    },
    chat: {
      title: '聊天',
      sid: 1
    },
    album: {
      title: '相册',
      sid: 1
    }
  }
}

export default (data) => {
  const arr = data.split('.')
  let backData
  switch (arr.length) {
    case 0:
      backData = ''
      break
    case 1:
      backData = zh[arr[0]]
      break
    case 2:
      backData = zh[arr[0]][arr[1]]
      break
    case 3:
      backData = zh[arr[0]][arr[1]][arr[2]]
      break
  }
  return backData
}
